class PSHud extends UDKHUD
	config(DefaultUI);

////////////////////////////////
/////Crosshair Var
var const Material crosshairImage1;
var const Material crosshairImage2;
var const Material crosshairImage3;
//var TextureCoordinates CrosshairCoordinates;

var bool bShowCrosshair;
var bool bDrawColorPalette;

var string sScreenText;

event PostRender()
{
	Canvas.SetPos((Canvas.ClipX/2)-16,(Canvas.ClipY/2)-16);
	
	if(bShowCrosshair && PSPawnDidrik(self.PlayerOwner.Pawn).CanFire())
	{
		if(PSPlayerController(self.PlayerOwner.Pawn.Controller).CurrentWeaponIndex == 1)
		{
			Canvas.DrawMaterialTile(crosshairImage1,32,32,0,0,1,1);
		}
		else
		{
			Canvas.DrawMaterialTile(crosshairImage2,32,32,0,0,1,1);
		}
	}

	if(sScreenText!="")
	{
		Canvas.DrawText(sScreenText);
	}
}

simulated function setScreenText(string text, float time)
{
	sScreenText = text;
	SetTimer(time,false,'clearScreenText');
}

simulated  function clearScreenText()
{
	sScreenText="";
}

defaultproperties
{
	bShowCrosshair = false
	bDrawColorPalette= false
	
	sScreenText=""

	crosshairImage1=Material'PS_weapons.Materials.crosshair' //Material'PS_weapons.Materials.crosshair'
	crosshairImage2=Material'PS_weapons.Materials.crosshair2' //Material'PS_weapons.Materials.crosshair'
	crosshairImage3=Material'PS_weapons.Materials.crosshair3' //Material'PS_weapons.Materials.crosshair'
}
